﻿using Owin;
using System.Web.Http;

namespace Sidvall.AuthorizationManager.Web.Host
{
	public partial class Startup
	{
		public void ConfigureWebApi(IAppBuilder app)
		{
			var config = new HttpConfiguration();
			// Web API configuration and services
			// Configure Web API to use only bearer token authentication.
			//config.SuppressDefaultHostAuthentication();
			//config.Filters.Add(new HostAuthenticationFilter(OAuthDefaults.AuthenticationType));

			// Web API routes
			config.MapHttpAttributeRoutes();

			app.UseWebApi(config);
		}
	}
}